EXAMPLE SOURCE CODES


     This is a small collection of mostly game example source codes. These source codes are made available to help PlayBasic programmers kick start their game programming journey. Looking for more source code / tutorials & media, then remember to visit the PlayBasic Resource board on our forums.

Found #2 items in Fps category

 Timer Based Movement with Vsync Tweening

By: Kevin Picone Added: August 23rd, 2009

Category: All, Fps, Timing


The aim of this example is to demonstrate an approach for decoupling your games logic from the host computers drawing performance, which is commonly referred to as timer based movement.

However in this approach, we're going to keep our frame based approach also. By doing this, our game logic is the virtually the same as what it would be, expect we're selectively executing the logic, and trying to tween (interpolate) the graphical output between logic refreshes.

Related Articles
Timer Based Movement
Vsync / Frame Rate Scaling
Handling Multiple Animations using Timer()
Consistent Game Timing

Download: Login to Download




 Selective (Tile Based) Refreshing

By: Kevin Picone Added: October 1st, 2008

Category: All, Fps, Tutorial,Maps


This is a quick example of a dirty rectangle style refresh using a tile map. The example allows you to render a 'static' backdrop page with a bunch of the sprites moving over it. The primary objective of such approaches is to reduce the cost per pixel.
Download: Login to Download




Viewing Page [1] of [1]



Want More Source Codes?:



Release Type: The source code & tutorials found on this site are released as license ware for PlayBasic Users. No Person or Company may redistribute any file (tutorial / source code or media files) from this site, without explicit written permission.

 

 
     
 
       

(c) Copyright 2002 / 2024 Kevin Picone , UnderwareDesign.com  - Privacy Policy   Site: V0.99a [Alpha]